package com.yang.wfcuser.serive.impl;

import com.yang.wfcuser.mapper.ProductMapper;
import com.yang.wfcuser.pojo.vo.ProductInfoVO;
import com.yang.wfcuser.serive.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;
    @Override
    public ProductInfoVO getProductInfoVOById(Long id) {
        ProductInfoVO productInfoById = productMapper.getProductInfoById(id);

        return productInfoById;
    }

    @Override
    public List<ProductInfoVO> list() {
        List<ProductInfoVO> list = productMapper.list();
        return list;
    }
}
